<form class="form-horizontal" name="compute_form" ng-submit="update()">
  <div class="modal-header">
    <a class="close" ng-click="close()">&times;</a>
    <div class="input-prepend input-append">
      <h4>{{title}}</h4>       
    </div>
  </div>
  <div class="modal-body">
    <div class="control-group">
      <label class="control-label">名称</label>
      <div class="controls">
        <input type="text" required ng-model="compute.name" class="input"/>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">CPU：</label>
      <div class="controls">
        <input type="text" required ng-model="compute.cpu" class="input"/>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">内存：</label>
      <div class="controls">
        <input type="text" required ng-model="compute.memory" class="input"/>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">硬盘：</label>
      <div class="controls">
        <input type="text" required ng-model="compute.disk" class="input"/>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">网络：</label>
      <div class="controls">
	    <select ng-options="n.name for n in networks" ng-model="networks.default"></select>
      </div>
    </div>
    <div class="control-group">
      <label class="control-label">网卡类型：</label>
      <div class="controls">
	    <select ng-model="iftypes.default" ng-options="if.name for if in iftypes"></select>
      </div>
    </div>
    
  </div>
  <div class="modal-footer">
    <a data-dismiss="modal" class="btn" ng-click="close()">关闭</a>
    <button type="submit" ng-disabled="!compute_form.$valid" class="btn btn-primary">保存</button>
  </div>
</form>
